// 输出与 EKS OIDC 相关的信息，供 IRSA 模块使用
output "oidc_provider_arn" {
  description = "OIDC provider ARN for the EKS cluster"
  value       = try(aws_iam_openid_connect_provider.oidc[0].arn, null)
}

output "oidc_provider_url_without_https" {
  description = "OIDC provider URL for the EKS cluster"
  value       = try(replace(aws_eks_cluster.this[0].identity[0].oidc[0].issuer, "https://", ""), null)
}
